﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication5
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private Point mouse_offset;
        private void Form1_MouseDown(object sender, MouseEventArgs e)
        {
            mouse_offset = new Point(-e.X,-e.Y);
        }

        private void Form1_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.Button==MouseButtons.Left)
            {
                Point mousePos = Control.MousePosition;
                mousePos.Offset(mouse_offset.X, mouse_offset.Y);
                this.Location = this.PointToClient(mousePos);
            }
        }

        private void pictureBox12_Click(object sender, EventArgs e)
        {
            
            MessageBox.Show("全部歌手");
        }

        private void pictureBox13_Click(object sender, EventArgs e)
        {
            MessageBox.Show("大陆男歌手");
        }

        private void pictureBox14_Click(object sender, EventArgs e)
        {
            MessageBox.Show("大陆女歌手");
        }

        private void pictureBox15_Click(object sender, EventArgs e)
        {
            MessageBox.Show("港台男歌手");
        }

        private void pictureBox16_Click(object sender, EventArgs e)
        {
            MessageBox.Show("港台女歌手");
        }

        private void pictureBox17_Click(object sender, EventArgs e)
        {
            MessageBox.Show("国外歌星");
        }

        private void pictureBox18_Click(object sender, EventArgs e)
        {
            MessageBox.Show("热门歌星");
        }

        private void pictureBox19_Click(object sender, EventArgs e)
        {
            MessageBox.Show("演唱组合");
        }
    }
}
